package com.atguigu.servlet;

import jakarta.servlet.*;
import jakarta.servlet.http.HttpServlet;

import java.io.IOException;

/**
 * @version 1.0
 * @Author 马冰
 * @Date 2024/12/9 10:43
 * @注释
 */
public class HelloServlet extends HttpServlet {

    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {

        System.out.println("打印输出成功了");

        //获取
        servletResponse.getWriter().println("HelloServlet s");
    }

}
